package fun.anin.aninhongbao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import fun.anin.aninhongbao.entity.RedPacketRecord;
import fun.anin.aninhongbao.dao.RedPacketRecordDao;
import fun.anin.aninhongbao.result.R;
import fun.anin.aninhongbao.service.RedPacketRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 抢红包记录表(RedPacketRecord)表服务实现类
 *
 * @author makejava
 * @since 2020-03-31 17:56:50
 */
@Service("redPacketRecordService")
public class RedPacketRecordServiceImpl extends ServiceImpl<RedPacketRecordDao, RedPacketRecord> implements RedPacketRecordService {

    @Resource
    private RedPacketRecordDao recordDao;
    @Override
    public R markAsLuck(RedPacketRecord record) {
        return R.ok(recordDao.markAsLuck(record));
    }
}